]> dgit.raspbian.org Git - gnome-shell.git/commit
loginDialog: Ensure old timed login timeout is removed before starting a new one
authorverdre <gitlab@v0yd.nl>
Tue, 17 Apr 2018 12:51:20 +0000 (14:51 +0200)
committerverdre <gitlab@v0yd.nl>
Thu, 19 Apr 2018 07:08:45 +0000 (09:08 +0200)
commit522a5fe480c45fb35dbe7fe7e2fc48560ad608b5
tree3bad4b87aa9fdc44395c93b31534e1aadfd53f93
parentb1239b1257fe2990f19b7d6eb31af10fd3c1c26a
loginDialog: Ensure old timed login timeout is removed before starting a new one

Normally, we give the user a 5 second grace period of inactivity before
starting a timed login operation. Unfortunately, that grace period
timeout isn't properly removed if the timed login operation is restarted
during the grace period. That means the timeout handler can
inadvertently get called multiple times leading to the grace period
duration getting subtracted from the total animation time more than
once.

This commit ensures we only ever have one grace period timeout scheduled
at a time.
js/gdm/loginDialog.js